package com.example.controller;


import com.example.common.annotation.AuthConfig;
import com.example.common.utils.R;
import com.example.system.service.IRegionInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 中国地区信息 前端控制器
 * </p>
 *
 * @author 王鹤蒲
 * @since 2023-08-27
 */
@RestController
@RequestMapping("/region-info")
public class RegionInfoController {

    @Autowired
    private IRegionInfoService iRegionInfoService;

    @AuthConfig
    @RequestMapping(value="/queryRegionInfoList",method = RequestMethod.GET)
    public R queryRegionInfoList(){
       return  iRegionInfoService.queryAllRegionInfoList();
    }
}

